<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>印章管理</title>
</head>
<body class="layui-layout-body">
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">印章管理
            		<a href="/seal/add.htm" class="add_btn">添加印章</a>
            </h4>
            <div class="layui-form" >
            		<form action="/admin/devices/list.htm" method="get">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label width60">设备编号</label>
                        <div class="layui-input-inline width150">
                            <input type="text" class="layui-input" name="devicesId" value="${query.sealId}" placeholder=" 设备编号 ">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label width60">状态</label>
                        <div class="layui-input-block width150">
                            <select name="interest" lay-filter="aihao">
                                <option value="0" selected="">待绑定</option>
                                <option value="1">使用中</option>
                                <option value="2" >已过期</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline width80">
                        <div class="layui-input-inline ">
                            <button class="layui-btn" lay-submit="" lay-filter="demo1" >搜索</button>
                        </div>
                    </div>
                </div>
                </form>
            </div>
            <table class="layui-table  layui-form" mytable" lay-even="" lay-skin="nob">
                <thead>
                <tr>
                    <th>印章名称</th>
                    <th>设备数量</th>
                    <th>强制拍照</th>
                    <th>保管员</th>
                    <th>印章状态</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                		<#list pm.datas as item>
                    <tr>
                        <td>${item.sealName}</td>
                        <td>${item.quantity}</td>
                        <td>
                        	<#if item.isForcedPhoto=='Y'>是<#else>否</#if>
                        </td>
                        <td>${item.custosName}</td>
                        <td>	
                        		<@linkage type="SEAL_STATUS" key=item.sealStatus>
					        		<span class="${linkage.style}">${linkage.name}</span>
					        	</@linkage>
                        		
                        </td>
                        <td>${item.createTime?string('yyyy-MM-dd')}</td>
                        <td> 
                        		<#if item.sealStatus=='DISABLE'>
                        		<button class="layui-btn layui-btn-warm layui-btn-xs" onclick="xconfirm('确定启用','/seal/changStatus.htm',{sealId:${item.sealId}})"><i class="layui-icon"></i>启用</button>
                        		<#else>
                        		<button class="layui-btn layui-btn-warm layui-btn-xs" onclick="xconfirm('确定禁用','/seal/changStatus.htm',{sealId:${item.sealId}})"><i class="layui-icon"></i>禁用</button>
                        		</#if>
                        		<a href="/seal/update.htm?sealId=${item.sealId}" class="layui-btn layui-btn layui-btn-xs"><i class="layui-icon"></i>编辑</button>
                        		<a href="/seal/info.htm?sealId=${item.sealId}" class="layui-btn layui-btn layui-btn-xs" ><i class="layui-icon">&#xe6e6;</i>查看</a>
                        </td>
                    </tr>
                    </#list>
                </tbody>
            </table>
            <@p.page pm=pm></@p.page>

        </div>
     </div>

</body>
</html>